﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {

    }

    protected void TextBox2_TextChanged(object sender, EventArgs e)
    {

    }

    protected void num1_TextChanged(object sender, EventArgs e)
    {

    }

    protected void add_Click(object sender, EventArgs e)
    {
        res.Text =  (int.Parse(num1.Text) + int.Parse(num2.Text)).ToString();
    }

    protected void sub_Click(object sender, EventArgs e)
    {
        res.Text = (int.Parse(num1.Text) - int.Parse(num2.Text)).ToString();
    }

    protected void Button4_Click(object sender, EventArgs e)
    {
        res.Text = (int.Parse(num1.Text) * int.Parse(num2.Text)).ToString();
    }

    protected void Button5_Click(object sender, EventArgs e)
    {
        res.Text = (int.Parse(num1.Text) / int.Parse(num2.Text)).ToString();
    }
}